// components/gk-collapse/gk-collapse.js
Component({
    options: {
        addGlobalClass: true,
    },
    properties: {
        ui: {
            type: String,
            value: ''
        },
        bg: {
            type: String,
            value: 'ui-BG'
        },
        title:{
            type:String,
            value:''
        }
    },

    data: {
        // 展开状态
        isCollapse:false,
    },

    methods: {
        //显示或隐藏面板
        action(){
            const isCollapse = !this.data.isCollapse;
            this.setData({
                isCollapse:isCollapse
            });
        }
    }
})